home *** CD-ROM | disk | FTP | other *** search
- /* %filename% -- dispatcher for windows and for modeless dialogs */
- /* Created %date% %time% by AppMaker */
-
- %If lang = MPW%
- #include <Types.h>
- #include <Quickdraw.h>
- #include <Controls.h>
- #include <Dialogs.h>
- #include <Events.h>
- #include <Lists.h>
- #include <Menus.h>
- #include <TextEdit.h>
-
- %end if%
- %for each window gen include%
- %for each dialog gen includeModeless%
-
- #include "Globals.h"
-
- #include "%unitname%.h"
- %If lang = MPW%
-
- #pragma segment %unitname%
- %end if%
-
- /*----------*/
- void OpenWindows (fName, vRefNum, fRefNum)
- Str255 fName;
- short vRefNum;
- short fRefNum;
- {
- %for each window gen open%
- } /*OpenWindows*/
-
- /*----------*/
- void CloseCurWindow ()
- {
- switch (cur->windowKind) {
- %for each window gen close%
- } /*switch*/
- } /*CloseCurWindow*/
-
- /*----------*/
- void MouseInContent (where, modifiers)
- Point where;
- short modifiers;
- {
- switch (cur->windowKind) {
- %for each window gen mousein%
- } /*case*/
- } /*MouseInContent*/
-
- /*----------*/
- void TypeInWindow (ch)
- char ch;
- {
- switch (cur->windowKind) {
- %for each window gen typein%
- } /*case*/
- } /*TypeInWindow*/
-
- /*----------*/
- void UpdateContent ()
- {
- switch (cur->windowKind) {
- %for each window gen update%
- } /*case*/
- } /*UpdateContent*/
-
- /*----------*/
- void ActivateContent (activate)
- Boolean activate;
- {
- switch (cur->windowKind) {
- %for each window gen activate%
- } /*case*/
- } /*ActivateContent*/
-
- /*----------*/
- void ResizeContent ()
- {
- switch (cur->windowKind) {
- %for each window gen resize%
- } /*case*/
- } /*ResizeContent*/
-
- /*----------*/
- pascal void ScrollWindow (newValue, oldValue)
- short newValue;
- short oldValue;
- {
- switch (cur->windowKind) {
- %for each window gen scroll%
- } /*case*/
- } /*ScrollWindow*/
-
- /*----------*/
- void DoControl (whichControl, whichPart, where)
- ControlHandle whichControl;
- short whichPart;
- Point where;
- {
- switch (cur->windowKind) {
- %for each window gen track%
- } /*case*/
- } /*DoControl*/
-
- /*----------*/
- void InitModelessDialogs ()
- {
- %for each dialog gen init%
- } /*InitModelessDialogs*/
-
- /*----------*/
- void CloseModelessDialog (whichDialog)
- DialogPtr whichDialog;
- {
- %if lang = MPW%
- #pragma unused (whichDialog)
-
- %end if%
- %for each dialog gen close%
- } /*CloseModelessDialog*/
-
- /*----------*/
- Boolean FilterModeless (whichDialog, event, itemHit)
- DialogPtr whichDialog;
- EventRecord *event;
- short *itemHit;
- {
- %if lang = MPW%
- #pragma unused (whichDialog, event, itemHit)
-
- %end if%
- %for each dialog gen filter%
- return (false);
- } /*FilterModeless*/
-
- /*----------*/
- void DoModelessItem (whichDialog, itemNr)
- DialogPtr whichDialog;
- short itemNr;
- {
- %if lang = MPW%
- #pragma unused (whichDialog, itemNr)
-
- %end if%
- %for each dialog gen handleitem%
- } /*DoModelessItem*/
-
- /* %unitname% */